<?php

namespace Api;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Mine\MineApi;
use Psr\Http\Message\ResponseInterface;

#[Controller(prefix: 'api/v1/info/')]
class InfoController extends MineApi
{

    #[Inject]
    protected \Api\Logic\InfoLogic $infoLogic;
    #[GetMapping('getClass')]
    public function getClass(): ResponseInterface
    {
        return $this->success($this->infoLogic->getClass($this->request->all()));
    }

    #[GetMapping('getList')]
    public function getList(): ResponseInterface
    {
        return $this->success($this->infoLogic->getList($this->request->all()));
    }
    #[GetMapping('getDetail')]
    public function getDetail(): ResponseInterface
    {
        return $this->success($this->infoLogic->getDetail($this->request->all()));
    }


    #[GetMapping('getRecruitment')]
    public function getRecruitment(): ResponseInterface
    {
        return $this->success($this->infoLogic->getRecruitmentList($this->request->all()));
    }

    #[GetMapping('getCompany')]
    public function getCompany(): ResponseInterface
    {
        return $this->success($this->infoLogic->getCompany($this->request->all()));
    }
    #[GetMapping('cultureConfig')]
    public function cultureConfig(): ResponseInterface
    {
        return $this->success($this->infoLogic->cultureConfig($this->request->all()));
    }

    #[GetMapping('getProduct')]
    public function getProduct(): ResponseInterface
    {
        return $this->success($this->infoLogic->getProduct($this->request->all()));
    }
    #[GetMapping('getAdv')]
    public function getAdv(): ResponseInterface
    {
        return $this->success($this->infoLogic->getAdv($this->request->all()));
    }

    #[GetMapping('getSingle')]
    public function getSingle(): ResponseInterface
    {
        return $this->success($this->infoLogic->getSingle($this->request->all()));
    }
    /**
     * 企业文化
     */
    #[GetMapping('getCulture')]
    public function getCulture(): ResponseInterface
    {
        return $this->success($this->infoLogic->getCulture($this->request->all()));
    }
    /**
     * 企业品牌
     */
    #[GetMapping('getBrand')]
    public function getBrand(): ResponseInterface
    {
        return $this->success($this->infoLogic->getBrand($this->request->all()));
    }
}